package org.study.jpa.boot.repository.secondary;

import org.springframework.data.jpa.repository.*;
import org.springframework.transaction.annotation.Transactional;
import org.study.jpa.boot.entity.secondary.Ds2User;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2021-11-29
 */
public interface Ds2UserRepository extends JpaRepository<Ds2User, Long> {
    /**
     * 方法功能描述
     */
    @Transactional(rollbackFor = Exception.class)
    @Modifying
    @Query(value = "truncate table t_user", nativeQuery = true)
    void truncateTable();
}
